home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.metal;
-
- import com.sun.java.swing.text.JTextComponent;
- import java.awt.Component;
- import java.awt.Graphics;
-
- public class MetalTextFieldUI$TextFieldBorder extends Flush3DBorder {
- public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {
- if (c.isEnabled() && ((JTextComponent)c).isEditable()) {
- MetalUtils.drawFlush3DBorder(g, x, y, w, h);
- } else {
- MetalUtils.drawDisabledBorder(g, x, y, w, h);
- }
-
- }
- }
-